<?php slot('js_insideLoadFunction')?>
ADMIN_FORM.init();
var dCur = new Date();
var yearRange = '1950:'+ (dCur.getFullYear()-10);
var bdDefault = '1-1-'+(dCur.getFullYear()-30);
$('input.date-picker-birthday').datepicker({
	'yearRange': yearRange,
	'defaultDate': bdDefault
});
$('input.register-date').datepicker({
	'maxDate': 'today'
});
CANDIDATE.initForm();
CANDIDATE.addChildTechnology();
CANDIDATE.addChildSkill();
<?php end_slot()?>
<script type="text/javascript">
function fCHK(){
	$('input.money').each(function(){
		var $ob = $(this);
		$ob.val(MONEY.reverse($ob.val()));
	});
	return true;
}
</script>
<style type="text/css">
<!--
	table.confirm-info{
		width: 500px;
		border-collapse: collapse;
		
	}
	table.confirm-info input{
		border: 1px solid #ccc;
		border-radius: 3px;
		o-border-radius: 3px;
		moz-border-radius: 3px;
		webkit-border-radius: 3px;
		width: 270px;
		padding:3px 10px;
	}
	.hidden{
		display: none;
	}
	td.header.dfrom,
	td.header.dto{
		width: 95px;
	}
	td.header.school,
	td.header.subject{
		width: 160px;
	}
	td.header.ac{
		width: 30px;
	}
	td.header.mname{
		width: 200px;
	}
	td.header.jname{
		width: 350px;
	}
	td.header.mexperience{
		width: 122px;
	}
	td.header.level{
		
	}
	#page-content-right #inner .box-content .box-content-main table.table-form td.input textarea.mdescription{
		width: 380px;
		height: 35px;
	}
	#page-content-right #inner .box-content .box-content-main table.table-form td.input textarea.tdescription{
		width: 320px;
		height: 35px;
	}
	#page-content-right #inner .box-content .box-content-main table.table-form td.input textarea.wdescription{
		width: 145px;
		height: 35px;
	}
	#page-content-right #inner .box-content .box-content-main table.table-form td.input input.wcompany{
		width: 100px;
	}
	#page-content-right #inner .box-content .box-content-main table.table-form td.input input.job-hope{
		width: 320px;
	}
	#page-content-right #inner .box-content .box-content-main table.table-form td.input table.sub-form select.working-job-select,
	#page-content-right #inner .box-content .box-content-main table.table-form td.input table.sub-form select.working-pos-select{
		width: 100px;
		min-width: 100px;;
	}
	#page-content-right #inner .box-content td.input table.sub-form{
		width: 820px;
	}

	div.addmore{
		width: 820px;
		text-align: right;
	}
	td a.add-info{
		display: inline-block;
	}
-->
</style>
<div class="box-navigation">
	<?php echo $data['navigation']?>
</div>
<div class="clr"></div>
<div class="box-content">
	<form action="?action_name=<?php echo $data['action']?>" method="post" name="form_main" id="form_main" onsubmit="return fCHK();">
		<?php echo $form['_csrf_token']?>
		<div class="clr"></div>
		<div class="box-content-main "><?php echo $form->renderGlobalErrors()?>
			<div class="message"><?php echo empty($data['result'])?'':$data['result']?></div><div class="note"><?php echo __('is_require',null, 'table_list')?></div>
			<div class="clr"></div>
			<table class="table-list table-form" cellspacing="0" cellpadding="0" border="0">
				<tr class="class1">
					<td class="label"><?php echo __('label_resource_id',null,'candidate_candidates')?><span class="required">*</span></td>
					<td class="input">
						<?php echo $form['resource_id']->render(array('class'=>'required' , 'data-require'=> 'selected'))?>
						<a href="#" class="addnew" data-refer="Candidates_resource_id" data-reload-url="<?php echo sfConfig::get('app_prefix') . url_for2('candidate_resources_getlist')?>" data-url="<?php echo sfConfig::get('app_prefix') . url_for2('candidate_resources_4')?>" data-title="<?php echo __('resource_addnew_title', null, 'candidate_candidates')?>"><?php echo __('addnew_major_link', null, 'candidate_candidates')?></a>
						<span class="error" id="type_error"><?php echo __('selected', null, 'table_list')?></span>
					</td>
				</tr>
				<tr class="class1">
					<td class="label"><?php echo __('label_photo_url',null,'candidate_candidates')?></td>
					<td class="input"><input type="hidden" name="is_default" id="is-default" value="<?php echo $data['is_default']?>"/>
						<span class="img-item">
							<img src="<?php echo sfConfig::get('app_uploadControl_no_image')?>" class="upload-preview-multi" data-checkbox="is_default_checkbox" data-checkbox-name="is-default" data-name="candidate_photos"/>
						</span>
						<?php foreach($data['candidate_photos'] as $key => $val):?>
						<span class="img-item">
							<input type="hidden" name="candidate_photos[]" value="<?php echo $val['photo_url']?>"/>
							<img src="<?php echo $val['photo_url']?>"/><br/>
							<input type="checkbox" name="is_default_checkbox[]" value="<?php echo $val['photo_url']?>" class="data-checkbox" data-name="is-default" title="set default" alt="set default" <?php echo intval($val['is_default'])?'checked="checked"':''?>/>
							<a href="#" class="upload-remove-multi" title="remove" alt="remove"></a>
						</span>
						<?php endforeach;?>
					</td>
					
				</tr>
				<tr class="class1">
					<td class="label"><?php echo __('label_documents',null,'candidate_candidates')?></td>
					<td class="input">
						<a href="#" class="multi-documents-add" data-name="documents">&nbsp;</a>
						<?php foreach($data['candidate_documents'] as $val):?>
						<span class="documents-item">
							<input type="hidden" name="documents[]" value="<?php echo $val?>"/>
							<br/><span class="multi-documents-filename"><?php echo basename($val)?></span>&nbsp;
							<a href="#" class="multi-documents-remove" title="remove" alt="remove"></a>
						</span>
						<?php endforeach;?>
					</td>
					
				</tr>
				<tr class="class1">
					<td class="label"><?php echo __('label_full_name',null,'candidate_candidates')?><span class="required">*</span></td>
					<td class="input">
						<?php echo $form['full_name']->render(array('class'=>'form-text required', 'data-require'=> 'not-empty'))?>
						<span class="error" id="type_error"><?php echo __('not_empty', null, 'table_list')?></span>
					</td>
					
				</tr>
				<tr class="class1">
					<td class="label"><?php echo __('label_identity_card',null,'candidate_candidates')?></td>
					<td class="input">
						<?php echo $form['identity_card']->render(array('class'=>'form-text', ))?>
					</td>
					
				</tr>
				
				<tr class="class1">
					<td class="label"><?php echo __('gender',null,'candidate_candidates')?></td>
					<td class="input"><?php echo $form['gender']->render()?></td>
					
				</tr>
				
				<tr class="class1">
					<td class="label"><?php echo __('label_date_of_birth',null,'candidate_candidates')?><span class="required">*</span></td>
					<td class="input">
						<?php echo $form['date_of_birth']->render(array('class'=>'date required date-picker-birthday','data-require'=> 'not-empty'))?>
						<span class="error" id="type_error"><?php echo __('error_date_required', null, 'candidate_candidates')?></span>
					</td>
					
				</tr>
				
				<tr class="class1">
					<td class="label"><?php echo __('is_married',null,'candidate_candidates')?></td>
					<td class="input"><?php echo $form['is_married']->render()?></td>
					
				</tr>
				<tr class="class1">
					<td class="label"><?php echo __('job_hope',null,'candidate_candidates')?></td>
					<td class="input">
						<table class="create-child sub-form" id="sub-form-job-hope" data-error="<?php echo __('job-hope-error', null, 'candidate_candidates')?>" border="1" cellspacing="0" cellpadding="0" > 
							<tr>
								<td class="header jname"><?php echo __('job_hope', null, 'candidate_candidates')?></td>
								<td class="header sdescription"><?php echo __('skill_description', null, 'candidate_candidates')?></td>
								<td class="header ac">&nbsp;</td>
							</tr>
							
							<?php $count_for = 0;
							foreach ($data['child']['job_hope'] as $work):?>
							<tr class="r-required" data-count="0">
									<td><input id="job_hopes_job_hope_<?php echo $count_for?>" name="job_hopes[<?php echo $count_for?>][job_hope]" class="job-hope r-required autocomplete" data-source-url="<?php echo sfConfig::get('app_prefix') , url_for2('candidate_ajaxGet',array('action_name'=>'job_hope'))?>"  value="<?php echo $work['job_hope']?>"/><a href="#" class="autocomplete" data-related-id="job_hopes_job_hope_<?php echo $count_for?>">▼</a></td>
									<td><textarea name="job_hopes[<?php echo $count_for?>][description]" class="mdescription"><?php echo $work['description']?></textarea></td>
									<td><a href="#" class="remove-child" title="" >&nbsp;</a></td>
							</tr>
							<?php $count_for++; 
							endforeach;?>
							<tr class="r-required" data-count="0">
									<td><input id="job_hopes_job_hope_<?php echo $count_for?>" name="job_hopes[<?php echo $count_for?>][job_hope]" class="job-hope  r-required autocomplete" data-source-url="<?php echo sfConfig::get('app_prefix') , url_for2('candidate_ajaxGet',array('action_name'=>'job_hope'))?>" value=""/><a href="#" class="autocomplete" data-related-id="job_hopes_job_hope_<?php echo $count_for?>">▼</a></td>
									<td><textarea name="job_hopes[<?php echo $count_for?>][description]" class="mdescription"></textarea></td>
									<td><a href="#" class="remove-child" title="" >&nbsp;</a></td>
							</tr>
						</table>
						<div class="addmore"><a href="#" data-count="<?php echo ++$count_for?>" class="sub-form-add" title="" data-action="job-hope" data-refer-id="sub-form-job-hope">&nbsp;</a></div>
						
					
					</td>
					
				</tr>
				
				<tr class="class1">
					<td class="label"><?php echo __('working_experience_foreign',null,'candidate_candidates')?></td>
					<td class="input"><?php echo $form['working_experience_foreign']->render()?></td>
					
				</tr>
				
				
				<tr class="class1">
					<td class="label"><?php echo __('label_address',null,'candidate_candidates')?><span class="required">*</span></td>
					<td class="input">
						<?php echo $form['address']->render(array('class'=>'form-text required', 'data-require'=> 'not-empty'))?>
						<span class="error" id="type_error"><?php echo __('not_empty', null, 'table_list')?></span>
					</td>
					
				</tr>
				<tr class="class1">
					<td class="label"><?php echo __('label_location_city_id',null,'candidate_candidates')?><span class="required">*</span></td>
					<td class="input">
						<?php echo $form['location_city_id']->render(array('class'=>'select-parent required',  'data-require'=> 'selected', 'data-child-id'=>'Candidates_location_district_id', 'data-update'=>'/admin/candidates/getDistrict', 'data-child-select'=>__('option_select', null, 'table_list')))?>
						<span class="error" id="type_error"><?php echo __('selected', null, 'table_list')?></span>
					</td>
				</tr>
				<tr class="class1">
					<td class="label"><?php echo __('label_location_district_id',null,'candidate_candidates')?></td>
					<td class="input">
						<?php echo $form['location_district_id']->render(array('type'=>'hidden'))?>
					</td>
				</tr>
				
				<tr class="class1">
					<td class="label"><?php echo __('label_home_address',null,'candidate_candidates')?><span class="required">*</span></td>
					<td class="input">
						<?php echo $form['home_address']->render(array('class'=>'form-text required', 'data-require' => 'not-empty'))?>
						<span class="error" id="type_error"><?php echo __('not_empty', null, 'table_list')?></span>
					</td>
				</tr>
				<tr class="class1">
					<td class="label"><?php echo __('label_home_city_id',null,'candidate_candidates')?><span class="required">*</span></td>
					<td class="input">
						<?php echo $form['home_city_id']->render(array('class'=>'select-parent required',  'data-require'=> 'selected', 'data-child-id'=>'Candidates_home_district_id', 'data-update'=>'/admin/candidates/getDistrict', 'data-child-select'=>__('option_select', null, 'table_list')))?>
						<span class="error" id="type_error"><?php echo __('selected', null, 'table_list')?></span>
					</td>
				</tr>
				<tr class="class1">
					<td class="label"><?php echo __('label_home_district_id',null,'candidate_candidates')?></td>
					<td class="input">
						<?php echo $form['home_district_id']->render(array('type'=>'hidden'))?>
					</td>
				</tr>
				<tr class="class1">
					<td class="label"><?php echo __('label_contact_address',null,'candidate_candidates')?></td>
					<td class="input">
						<?php echo $form['contact_address']->render(array('class'=>'form-text'))?>
					</td>
					
				</tr>
				<tr class="class1">
					<td class="label"><?php echo __('label_email',null,'candidate_candidates')?></td>
					<td class="input">
						<?php echo $form['email']->render(array('class'=>'form-text'))?>
					</td>
					
				</tr>
				
				<tr class="class1">
					<td class="label"><?php echo __('phone_number',null,'candidate_candidates')?></td>
					<td class="input">
						<?php echo $form['phone_number']->render(array('class'=>'number', ))?>
					</td>
				</tr>
				
				<tr class="class1" style="display: none">
					<td class="label"><?php echo __('telephone',null,'candidate_candidates')?></td>
					<td class="input">
						<?php echo $form['telephone']->render(array('class'=>'number'))?>
						
					</td>
				</tr>
				
				<tr class="class1">
					<td class="label"><?php echo __('otherphone',null,'candidate_candidates')?></td>
					<td class="input">
						<?php echo $form['otherphone']->render(array('class'=>'number'))?>
						
					</td>
				</tr>
				<tr class="class1">
					<td class="label"><?php echo __('label_education',null,'candidate_candidates')?></td>
					<td class="input">
						<select id="education-select" name="education-select" class="replace-for" data-replace-id="Candidates_education">
							<option value="-1"><?php echo __('option_select', null, 'table_list')?></option>
							<?php foreach ($data['filter_level_id'] as $lv):?>
							<option value="<?php echo $lv['name']?>"><?php echo $lv['name']?></option>
							<?php endforeach?>
						</select>
						<?php echo $form['education']->render(array('class'=>'form-text ', 'type' => 'hidden'))?>
						
					</td>
					
				</tr>
				<tr class="class1">
					<td class="label"><?php echo __('label_candidate_education',null,'candidate_candidates')?></td>
					<td class="input">
						<div style="display: none">
										<select id="education-level-tmp" class="education-level">
											<option value="-1"><?php echo __('option_select', null, 'table_list')?></option>
											<?php foreach($data['child']['education_levels'] as $k=> $pos):?>
											<option value="<?php echo $k?>"><?php echo $pos['name']?></option>
										<?php endforeach;?>
										</select>
										<div id="education-major-addmore-tmp">&nbsp;<a href="#" class="addnew" data-refer="education-level" data-reload-url="<?php echo sfConfig::get('app_prefix') . url_for2('education_levels_getLevels')?>" data-url="<?php echo sfConfig::get('app_prefix') . url_for2('education_levels_4')?>" data-title="<?php echo __('educationlevel_addnew_title', null, 'candidate_candidates')?>"><?php echo __('addnew_major_link', null, 'candidate_candidates')?></a></div>
										
						</div>
						<table class="create-child sub-form" id="sub-form-education" data-error-lessthan="<?php echo __('error_date_from_2', null, 'candidate_candidates')?>" data-error="<?php echo __('education-error', null, 'candidate_candidates')?>" border="1" cellspacing="0" cellpadding="0" > 
							<tr>
								<td class="header dfrom" 		data-error="<?php echo __('error_date_from', null, 'candidate_candidates')?>" data-error-2="<?php echo __('error_date_from_2', null, 'candidate_candidates')?>" ><?php echo __('date_from', null, 'candidate_candidates')?></td>
								<td class="header dto" 			data-error="<?php echo __('error_date_to', null, 'candidate_candidates')?>"><?php echo __('date_to', null, 'candidate_candidates')?></td>
								<td class="header school" 	data-error="<?php echo __('error_education_school', null, 'candidate_candidates')?>"><?php echo __('education_school', null, 'candidate_candidates')?></td>
								<td class="header subject" 	data-error="<?php echo __('error_education_major_subject', null, 'candidate_candidates')?>"><?php echo __('major_subject', null, 'candidate_candidates')?></td>
								<td class="header level" 		data-error="<?php echo __('error_education_level', null, 'candidate_candidates')?>"><?php echo __('education_level_id', null, 'candidate_candidates')?></td>
								<td class="header checked" ><?php echo __('is_checked', null, 'candidate_candidates')?></td>
								<td class="header ac">&nbsp;</td>
							</tr>
							<?php $count_for = 0;
							foreach($data['child']['educations'] as $work):
								$date_from = date('m/Y', strtotime($work['date_from']));
								$date_to = date('m/Y', strtotime($work['date_to']));?>
							<tr data-count="0" class="r-required">
								<td><input name="educations[<?php echo $count_for?>][date_from]" 				class="date-picker-month r-required date-lessthan" value="<?php echo $date_from?>"/></td>
								<td><input name="educations[<?php echo $count_for?>][date_to]" 					class="date-picker-month r-required date-morethan"  value="<?php echo $date_to?>"/></td>	
								<td><input name="educations[<?php echo $count_for?>][education_school]" class="r-required" 				  value="<?php echo $work['education_school']?>"/></td>
								<td><input name="educations[<?php echo $count_for?>][major_subject]" 		class="r-required" 				  value="<?php echo $work['major_subject']?>"/></td>
								<td>
									<select name="educations[<?php echo $count_for?>][education_level_id]" data-get-id="education-level-tmp" data-select-id="<?php echo $work['education_level_id']?>" class="r-selected r-required education-level"></select>
									&nbsp;<a href="#" class="addnew" data-refer="education-level" data-reload-url="<?php echo sfConfig::get('app_prefix') . url_for2('education_levels_getLevels')?>" data-url="<?php echo sfConfig::get('app_prefix') . url_for2('education_levels_4')?>" data-title="<?php echo __('educationlevel_addnew_title', null, 'candidate_candidates')?>"><?php echo __('addnew_major_link', null, 'candidate_candidates')?></a>
								</td>
								<td><input type="checkbox" name="educations[<?php echo $count_for?>][is_checked]" <?php echo intval($work['is_checked'])?'checked':''?> value="1"/></td>
								<td><a href="#" class="remove-child" title="">&nbsp;</a></td>
							</tr>	
							<?php 
							$count_for++;
							endforeach;?>
							<tr data-count="0" class="r-required">
								<td><input name="educations[<?php echo $count_for?>][date_from]" 				class="date-picker-month r-required date-lessthan" value=""/></td>
								<td><input name="educations[<?php echo $count_for?>][date_to]" 					class="date-picker-month r-required date-morethan"  			  value=""/></td>	
								<td><input name="educations[<?php echo $count_for?>][education_school]" class="r-required" 				  value=""/></td>
								<td><input name="educations[<?php echo $count_for?>][major_subject]" 		class="r-required" 				  value=""/></td>
								<td>
									<select name="educations[<?php echo $count_for?>][education_level_id]" data-get-id="education-level-tmp" data-select-id="-1" class="r-selected r-required education-level"></select>
									&nbsp;<a href="#" class="addnew" data-refer="education-level" data-reload-url="<?php echo sfConfig::get('app_prefix') . url_for2('education_levels_getLevels')?>" data-url="<?php echo sfConfig::get('app_prefix') . url_for2('education_levels_4')?>" data-title="<?php echo __('educationlevel_addnew_title', null, 'candidate_candidates')?>"><?php echo __('addnew_major_link', null, 'candidate_candidates')?></a>
								</td>
								<td><input type="checkbox"  name="educations[<?php echo $count_for?>][is_checked]" value="1"/></td>
								<td><a href="#" class="remove-child" title="" >&nbsp;</a></td>
							</tr>
						</table>
						<div class="addmore"><a href="#" data-count="<?php echo ++$count_for?>" class="sub-form-add" title="" data-action="education" data-refer-id="sub-form-education">&nbsp;</a></div>
						
					</td>
				</tr>	
				
				<tr class="class1">
					<td class="label"><?php echo __('label_language',null,'candidate_candidates')?></td>
					<td class="input">
						<div style="display: none">
										<select id="language-tmp" class="language-select">
											<option value="-1"><?php echo __('option_select', null, 'table_list')?></option>
											<?php foreach($data['child']['language_list'] as $k => $v):?>
											<option value="<?php echo $k?>"><?php echo $v['name']?></option>
											<?php endforeach;?>
										</select>	
						</div>
						<table class="create-child sub-form" id="sub-form-language" data-error="<?php echo __('language-error', null, 'candidate_candidates')?>" border="1" cellspacing="0" cellpadding="0" > 
							<tr>
								<td class="header lname"><?php echo __('language_name', null, 'candidate_candidates')?></td>
								<td class="header llevel"><?php echo __('language_level', null, 'candidate_candidates')?></td>
								<td class="header ldescription"><?php echo __('language_description', null, 'candidate_candidates')?></td>
								<td class="header checked" ><?php echo __('is_checked', null, 'candidate_candidates')?></td>
								<td class="header ac">&nbsp;</td>
							</tr>
							
							<?php $count_for = 0;
							foreach ($data['child']['languages'] as $work):	?>
								<tr class="r-required" data-count="0">
									<td><select name="languages[<?php echo $count_for?>][language_id]" data-get-id="language-tmp" data-select-id="<?php echo $work['foreign_language_id']?>" class="r-selected r-required r-parent" data-url="/admin/candidates/getLanguageLevel" data-refer="r-child"></select></td>
									<td><select name="languages[<?php echo $count_for?>][language_level_id]" data-select-id="<?php echo $work['foreign_language_level_id']?>" class="r-required r-child"><option value="-1"><?php echo __('option_select', null, 'table_list')?></option></select></td>
									<td><textarea name="languages[<?php echo $count_for?>][description]" class="mdescription"><?php echo $work['description']?></textarea></td>
									<td><input type="checkbox" name="languages[<?php echo $count_for?>][is_checked]" <?php echo intval($work['is_checked'])?'checked':''?> value="1"/></td>
									<td><a href="#" class="remove-child" title="" >&nbsp;</a></td>
								</tr>
							<?php $count_for++;
							endforeach;?>
								<tr class="r-required" data-count="0">
									<td><select name="languages[<?php echo $count_for?>][language_id]" data-get-id="language-tmp" data-select-id="-1" class="r-selected r-required r-parent" data-url="/admin/candidates/getLanguageLevel" data-refer="r-child"></select></td>
									<td><select name="languages[<?php echo $count_for?>][language_level_id]" data-select-id="<?php echo $work['foreign_language_level_id']?>" class="r-required r-child"><option value="-1"><?php echo __('option_select', null, 'table_list')?></option></select></td>
									<td><textarea name="languages[<?php echo $count_for?>][description]" class="mdescription"></textarea></td>
									<td><input type="checkbox"  name="languages[<?php echo $count_for?>][is_checked]" value="1"/></td>
									<td><a href="#" class="remove-child" title="" >&nbsp;</a></td>
								</tr>
						</table>
						<div class="addmore"><a href="#" data-count="<?php echo ++$count_for?>" class="sub-form-add" title="" data-action="language" data-refer-id="sub-form-language">&nbsp;</a></div>
						
					</td>
				</tr>	
				<tr class="class1">
					<td class="label"><?php echo __('label_information_technology',null,'candidate_candidates')?></td>
					<td class="input">
						<div style="display: none">
										<select id="tech-tmp" class="tech-select">
											<option value="-1"><?php echo __('option_select', null, 'table_list')?></option>
											<?php foreach($data['child']['information_technology_list'] as $k => $v):?>
											<option value="<?php echo $k?>"><?php echo $v['name']?></option>
											<?php endforeach;?>
										</select>
										<select id="tech-level-tmp" class="tech-level-select">
											<option value="-1"><?php echo __('option_select', null, 'table_list')?></option>
											<?php foreach($data['child']['information_technology_level_list'] as $k => $v):?>
											<option value="<?php echo $k?>"><?php echo $v['name']?></option>
											<?php endforeach;?>
										</select>	
										<div id="tech-id-tmp">&nbsp;<a href="#" class="addnew" data-refer="tech-select" data-reload-url="<?php echo sfConfig::get('app_prefix') . url_for2('information_technology_information_technology_getlist')?>" data-url="<?php echo sfConfig::get('app_prefix') . url_for2('information_technology_information_technology_4')?>" data-title="<?php echo __('information_technology_addnew_title', null, 'candidate_candidates')?>" ><?php echo __('addnew_major_link', null, 'candidate_candidates')?></a></div>
										<div id="tech-level-id-tmp">&nbsp;<a href="#" class="addnew" data-refer="tech-level-select"  data-reload-url="<?php echo sfConfig::get('app_prefix') . url_for2('information_technology_levels_getlist')?>" data-url="<?php echo sfConfig::get('app_prefix') . url_for2('information_technology_levels_4')?>" data-title="<?php echo __('information_technology_level_addnew_title', null, 'candidate_candidates')?>"><?php echo __('addnew_major_link', null, 'candidate_candidates')?></a></div>
										
						</div>
						<table class="create-child sub-form" id="sub-form-tech" data-error="<?php echo __('technology-error', null, 'candidate_candidates')?>" border="1" cellspacing="0" cellpadding="0"> 
							<tr>
								<td class="header tname"><?php echo __('information_technology_name', null, 'candidate_candidates')?></td>
								<td class="header tlevel"><?php echo __('information_technology_level', null, 'candidate_candidates')?></td>
								<td class="header tdescription"><?php echo __('information_technology_description', null, 'candidate_candidates')?></td>
								<td class="header checked" ><?php echo __('is_checked', null, 'candidate_candidates')?></td>
								<td class="header ac">&nbsp;</td>
							</tr>
							
							<?php $count_for = 0;
							foreach ($data['child']['information_technologies'] as $work):?>
								<tr class="r-required" data-count="0">
									<td>
										<select name="technologies[<?php echo $count_for?>][technology_id]" data-get-id="tech-tmp" data-select-id="<?php echo $work['information_technology_id']?>" class="r-selected r-required tech-select"></select>
										&nbsp;<a href="#" class="addnew" data-refer="tech-select" data-reload-url="<?php echo sfConfig::get('app_prefix') . url_for2('information_technology_information_technology_getlist')?>" data-url="<?php echo sfConfig::get('app_prefix') . url_for2('information_technology_information_technology_4')?>" data-title="<?php echo __('information_technology_addnew_title', null, 'candidate_candidates')?>" ><?php echo __('addnew_major_link', null, 'candidate_candidates')?></a>
									</td>
									<td>
										<select name="technologies[<?php echo $count_for?>][technology_level_id]" data-get-id="tech-level-tmp" data-select-id="<?php echo $work['information_technology_level_id']?>" class="r-selected r-required tech-level-select"></select>
										&nbsp;<a href="#" class="addnew" data-refer="tech-level-select" data-reload-url="<?php echo sfConfig::get('app_prefix') . url_for2('information_technology_levels_getlist')?>" data-url="<?php echo sfConfig::get('app_prefix') . url_for2('information_technology_levels_4')?>" data-title="<?php echo __('information_technology_level_addnew_title', null, 'candidate_candidates')?>"><?php echo __('addnew_major_link', null, 'candidate_candidates')?></a>
									</td>
									<td><textarea name="technologies[<?php echo $count_for?>][description]" class="tdescription"><?php echo $work['description']?></textarea></td>
									<td><input type="checkbox" name="technologies[<?php echo $count_for?>][is_checked]" <?php echo intval($work['is_checked'])?'checked':''?> value="1"/></td>
									<td><a href="#" class="remove-child" title="" >&nbsp;</a></td>
								</tr>	
							<?php 
							$count_for++;
							endforeach;?>
								<tr class="r-required" data-count="0">
									<td>
										<select name="technologies[<?php echo $count_for?>][technology_id]" data-get-id="tech-tmp" data-select-id="-1" class="r-selected r-required tech-select"></select>
										&nbsp;<a href="#" class="addnew" data-refer="tech-select" data-reload-url="<?php echo sfConfig::get('app_prefix') . url_for2('information_technology_information_technology_getlist')?>" data-url="<?php echo sfConfig::get('app_prefix') . url_for2('information_technology_information_technology_4')?>" data-title="<?php echo __('information_technology_addnew_title', null, 'candidate_candidates')?>" ><?php echo __('addnew_major_link', null, 'candidate_candidates')?></a>
									</td>
									<td>
										<select name="technologies[<?php echo $count_for?>][technology_level_id]" data-get-id="tech-level-tmp" data-select-id="-1" class="r-selected r-required tech-level-select"></select>
										&nbsp;<a href="#" class="addnew" data-refer="tech-level-select" data-reload-url="<?php echo sfConfig::get('app_prefix') . url_for2('information_technology_levels_getlist')?>" data-url="<?php echo sfConfig::get('app_prefix') . url_for2('information_technology_levels_4')?>" data-title="<?php echo __('information_technology_level_addnew_title', null, 'candidate_candidates')?>"><?php echo __('addnew_major_link', null, 'candidate_candidates')?></a>
									</td>
									<td><textarea name="technologies[<?php echo $count_for?>][description]" class="tdescription"></textarea></td>
									<td><input type="checkbox"  name="technologies[<?php echo $count_for?>][is_checked]" value="1"/></td>
									<td><a href="#" class="remove-child" title="" >&nbsp;</a></td>
								</tr>	
						</table>
						<div class="addmore"><a href="#" data-count="<?php echo ++$count_for?>" class="sub-form-add" title="" data-action="tech" data-refer-id="sub-form-tech">&nbsp;</a></div>
						
					</td>
				</tr>	
				<tr class="class1">
					<td class="label"><?php echo __('more_skill',null,'candidate_candidates')?></td>
					<td class="input">
						<table class="create-child sub-form" id="sub-form-skill" data-error="<?php echo __('skill-error', null, 'candidate_candidates')?>" border="1" cellspacing="0" cellpadding="0" > 
							<tr>
								<td class="header sname"><?php echo __('skill_name', null, 'candidate_candidates')?></td>
								<td class="header sdescription"><?php echo __('skill_description', null, 'candidate_candidates')?></td>
								<td class="header checked" ><?php echo __('is_checked', null, 'candidate_candidates')?></td>
								<td class="header ac">&nbsp;</td>
							</tr>
							
							<?php $count_for = 0;
							foreach ($data['child']['skill'] as $work):?>
							<tr class="r-required" data-count="0">
									<td><input name="skills[<?php echo $count_for?>][name]" class="r-required" value="<?php echo $work['skill']?>"/></td>
									<td><textarea name="skills[<?php echo $count_for?>][description]" class="mdescription"><?php echo $work['description']?></textarea></td>
									<td><input type="checkbox" name="skills[<?php echo $count_for?>][is_checked]" <?php echo intval($work['is_checked'])?'checked':''?> value="1"/></td>
									<td><a href="#" class="remove-child" title="" >&nbsp;</a></td>
							</tr>
							<?php $count_for++; 
							endforeach;?>
							<tr class="r-required" data-count="0">
									<td><input name="skills[<?php echo $count_for?>][name]" class="r-required" value=""/></td>
									<td><textarea name="skills[<?php echo $count_for?>][description]" class="mdescription"></textarea></td>
									<td><input type="checkbox"  name="skills[<?php echo $count_for?>][is_checked]" value="1"/></td>
									<td><a href="#" class="remove-child" title="" >&nbsp;</a></td>
							</tr>
						</table>
						<div class="addmore"><a href="#" data-count="<?php echo ++$count_for?>" class="sub-form-add" title="" data-action="skill" data-refer-id="sub-form-skill">&nbsp;</a></div>
						
					</td>
				</tr>	
				
				<tr class="class1" style="display: none">
					<td class="label"><?php echo __('salary_require',null,'candidate_candidates')?></td>
					<td class="input">
						<?php echo $form['salary_require']->render(array('class'=>'number money', 'readonly' => true))?>
					</td>
				</tr>
				<tr class="class1">
					<td class="label"><?php echo __('label_salary_id',null,'candidate_candidates')?><span class="required">*</span></td>
					<td class="input">
						<?php echo $form['salary_id']->render(array('class'=>'required select-money-2' , 'data-require'=> 'selected', 'data-separator' => ' - ', 'data-isChange' => '0 - 0', 'data-willChange' => __('label_salary_discuss', null, 'candidate_candidates')))?>
						<span class="error" id="type_error"><?php echo __('selected', null, 'table_list')?></span>
					</td>
				</tr>
				<tr class="class1" style="display: none">
					<td class="label"><?php echo __('label_multi_location',null,'candidate_candidates')?></td>
					<td class="input">
					<div style=" height: 55px; width: 795px; overflow: auto; border: 1px solid #ddd; padding: 10px 10px 10px 10px;">
						<?php 
						$count_all_city = count($data['list']['cities']);
						$lines = 6;
						$count_for_city = ceil($count_all_city / $lines);
						$cityDefault = LocationCities::getIdsDefault();
						for($li = 0; $li < $lines; $li++):?>
						<div style="float: left; width: 125px;">
						<?php for($i = $count_for_city * $li; $i < $count_for_city *($li + 1) && $i < $count_all_city; $i ++):
							$per = $data['list']['cities'][$i];?>						
							<input type="checkbox" class="promotion" <?php echo  intval($data['id']) > 0?$data['cities'][$per['id']]:(in_array($per['id'], $cityDefault)?'checked':'')?> value="<?php echo $per['id']?>" name="cities[]"/><label><?php echo $per['name']?></label><br/>
						<?php endfor; ?>
						</div>
						<?php 
						endfor;?>
						<div class="clr"></div>
					</div>
					</td>
				</tr>
				<tr class="class1">
					<td class="label"><?php echo __('label_working_status',null,'candidate_candidates')?></td>
					<td class="input"><?php echo $form['working_status']->render(array('class'=>'required'))?></td>
					
				</tr>
				<tr class="class1" style="display: none">
					<td class="label"><?php echo __('label_total_experience_year',null,'candidate_candidates')?> <span class="required">*</span></td>
					<td class="input">
						<?php echo $form['total_experience_year']->render(array('class'=>' number', ))?>
						<span class="error" id="type_error"><?php echo __('not_empty', null, 'table_list')?></span>
					</td>
					
					
				</tr>
			
				<tr class="class1" style="display: none">
					<td class="label"><?php echo __('label_work_kind',null,'candidate_candidates')?></td>
					<td class="input"><?php echo $form['work_kind']->render(array('class'=>'required'))?></td>
					
				</tr> 
				<tr class="class1" >
					<td class="label"><?php echo __('is_japan_training',null,'array_data')?></td>
					<td class="input"><?php echo $form['is_japan_training']->render(array('class'=>'required'))?></td>
					
				</tr>
				<tr class="class1">
					<td class="label"><?php echo __('label_candidate_working_history',null,'candidate_candidates')?></td>
					<td class="input">
						<div style="display: none">
										<select id="working-job-tmp" class="working-job-select">
											<option value="-1"><?php echo __('option_select', null, 'table_list')?></option>
											<?php foreach($data['child']['job_position'] as $k=> $pos):?>
											<option value="<?php echo $k?>"><?php echo $pos['name']?></option>
											<?php endforeach;?>
										</select>	
										<div id="working-job-id-tmp">&nbsp;<a href="#" class="addnew" data-refer="working-job-select" data-reload-url="<?php echo sfConfig::get('app_prefix') . url_for2('job_positions_getlist')?>" data-url="<?php echo sfConfig::get('app_prefix') . url_for2('job_positions_4')?>" data-title="<?php echo __('position_addnew_title', null, 'candidate_candidates')?>" ><?php echo __('addnew_major_link', null, 'candidate_candidates')?></a></div>
										<div id="working-pos-id-tmp">&nbsp;<a href="#" class="addnew has-parent" data-refer="working-job-select" data-refer="working-pos-select" data-reload-url="/admin/candidates/getPosition" data-url="<?php echo sfConfig::get('app_prefix') . url_for2('company_positions_4')?>" data-title="<?php echo __('position_addnew_title', null, 'candidate_candidates')?>"><?php echo __('addnew_major_link', null, 'candidate_candidates')?></a></div>
										<div id="confirm-title"><?php echo __('confirm-title', null, 'candidate_candidates')?></div>
										<div id="confirm-person"><?php echo __('confirm-person', null, 'candidate_candidates')?></div>
										<div id="confirm-phone"><?php echo __('confirm-phone-number', null, 'candidate_candidates')?></div>
										<div id="confirm-description"><?php echo __('confirm-description', null, 'candidate_candidates')?></div>
						</div>
						<table class="create-child sub-form" id="sub-form-working"  data-error-lessthan="<?php echo __('error_date_from_2', null, 'candidate_candidates')?>" data-error="<?php echo __('working-error', null, 'candidate_candidates')?>" data-error="<?php echo __('working-error', null, 'candidate_candidates')?>" border="1" cellspacing="0" cellpadding="0"> 
						
							<tr>
								<td class="header dfrom"><?php echo __('date_from', null, 'candidate_working_histories')?></td>
								<td class="header dto"><?php echo __('date_to', null, 'candidate_working_histories')?></td>
								<td class="header wname"><?php echo __('company_name', null, 'candidate_working_histories')?></td>
								<td class="header wjob"><?php echo __('job_position_id', null, 'candidate_working_histories')?></td>
								<td class="header wpos"><?php echo __('position_id', null, 'candidate_working_histories')?></td>
								<td class="header wdescription"><?php echo __('description', null, 'candidate_working_histories')?></td>
								<td class="header checked" ><?php echo __('is_checked', null, 'candidate_candidates')?></td>
								<td class="header ac" >&nbsp;</td>
							</tr>
							<?php $count_for = 0;
							foreach ($data['child']['workings'] as $work):
							$date_from = date('m/Y', strtotime($work['date_from']));
							$date_to = date('m/Y', strtotime($work['date_to'])); ?>
							<tr data-count="0" class="r-required">
								<td><input name="workings[<?php echo $count_for?>][date_from]" 				class="date-picker-month r-required date-lessthan" value="<?php echo $date_from?>"/></td>
								<td><input name="workings[<?php echo $count_for?>][date_to]" 					class="date-picker-month r-required date-morethan" value="<?php echo $date_to?>"/></td>	
								<td><input name="workings[<?php echo $count_for?>][company_name]" 		class="r-required wcompany" 				  value="<?php echo $work['company_name']?>"/></td>
								<td>
									<select name="workings[<?php echo $count_for?>][job_position_id]" 	data-get-id="working-job-tmp" data-select-id="<?php echo $work['job_position_id']?>" class="r-selected r-required working-job-select r-parent" data-url="/admin/candidates/getPosition" data-refer="r-child"></select>
									<!-- &nbsp;<a href="#" class="addnew" data-refer="working-job-select" data-reload-url="<?php echo sfConfig::get('app_prefix') . url_for2('job_positions_getlist')?>" data-url="<?php echo sfConfig::get('app_prefix') . url_for2('job_positions_4')?>" data-title="<?php echo __('position_addnew_title', null, 'candidate_candidates')?>" ><?php echo __('addnew_major_link', null, 'candidate_candidates')?></a> -->
								</td>
								<td>
									<select name="workings[<?php echo $count_for?>][position_id]" 	data-select-id="<?php echo $work['position_id']?>" class="r-required working-pos-select r-child"><option value="-1"><?php echo __('option_select', null, 'table_list')?></option></select>
									<!-- &nbsp;<a href="#" class="addnew has-parent" data-refer-parent="working-job-select" data-refer="working-pos-select" data-reload-url="/admin/candidates/getPosition" data-url="<?php echo sfConfig::get('app_prefix') . url_for2('company_positions_4')?>" data-title="<?php echo __('position_addnew_title', null, 'candidate_candidates')?>"><?php echo __('addnew_major_link', null, 'candidate_candidates')?></a> -->
								</td>
								<td><textarea name="workings[<?php echo $count_for?>][description]" class="wdescription"><?php echo $work['work_description']?></textarea></td>
								<td><input type="checkbox" name="workings[<?php echo $count_for?>][is_confirmed]" <?php echo intval($work['is_confirmed'])?'checked':''?> value="1"/></td>
								<td>
									<a href="#confirm-info-<?php echo $count_for?>" class="add-info" title="<?php echo __('confirm-title', null, 'candidate_candidates')?>"><img src="/css/admin/img/global/add-info.png"/></a>
									<a href="#" class="remove-child" title="" >&nbsp;</a>
									<div class="hidden">
										<div id="confirm-info-<?php echo $count_for?>">
											<table class="confirm-info">
												<tr>
													<th><?php echo __('confirm-person', null, 'candidate_candidates')?></th>
													<td><input name="workings[<?php echo $count_for?>][confirm_person]" 		class="wcperson" 				  value="<?php echo $work['confirm_person']?>"/></td>
												</tr>
												<tr>
													<th><?php echo __('confirm-phone-number', null, 'candidate_candidates')?></th>
													<td><input name="workings[<?php echo $count_for?>][confirm_phone_number]" 		class="wcphone number" 				  value="<?php echo $work['confirm_phone_number']?>"/></td>
												</tr>
												<tr>
													<th><?php echo __('confirm-description', null, 'candidate_candidates')?></th>
													<td><input name="workings[<?php echo $count_for?>][confirm_description]" 		class="wcphone" 				  value="<?php echo $work['confirm_description']?>"/></td>
												</tr>
											</table>
										</div>
									</div>
								</td>
							</tr>
							<?php $count_for++; 
							 endforeach;?>
							<tr data-count="0" class="r-required">
								<td><input name="workings[<?php echo $count_for?>][date_from]" 				class="date-picker-month r-required date-lessthan" value=""/></td>
								<td><input name="workings[<?php echo $count_for?>][date_to]" 					class="date-picker-month r-required date-morethan" value=""/></td>	
								<td><input name="workings[<?php echo $count_for?>][company_name]" 		class="r-required wcompany" 				  value=""/></td>
								<td>
									<select name="workings[<?php echo $count_for?>][job_position_id]" 	data-get-id="working-job-tmp" data-select-id="-1" class="r-selected r-required working-job-select r-parent" data-url="/admin/candidates/getPosition" data-refer="r-child"></select>
									<!-- &nbsp;<a href="#" class="addnew" data-refer="working-job-select" data-reload-url="<?php echo sfConfig::get('app_prefix') . url_for2('job_positions_getlist')?>" data-url="<?php echo sfConfig::get('app_prefix') . url_for2('job_positions_4')?>" data-title="<?php echo __('position_addnew_title', null, 'candidate_candidates')?>" ><?php echo __('addnew_major_link', null, 'candidate_candidates')?></a> -->
								</td>
								<td>
									<select name="workings[<?php echo $count_for?>][position_id]" 	data-select-id="-1" class="r-required working-pos-select r-child"><option value="-1"><?php echo __('option_select', null, 'table_list')?></option></select>
									<!-- &nbsp;<a href="#" class="addnew has-parent" data-refer-parent="working-job-select" data-refer="working-pos-select" data-reload-url="/admin/candidates/getPosition" data-url="<?php echo sfConfig::get('app_prefix') . url_for2('company_positions_4')?>" data-title="<?php echo __('position_addnew_title', null, 'candidate_candidates')?>"><?php echo __('addnew_major_link', null, 'candidate_candidates')?></a> -->
								</td>
								<td><textarea name="workings[<?php echo $count_for?>][description]" class="wdescription"></textarea></td>
								<td><input type="checkbox" name="workings[<?php echo $count_for?>][is_confirmed]"  value="1"/></td>
								<td>
									<a href="#confirm-info-<?php echo $count_for?>" class="add-info" title="<?php echo __('confirm-title', null, 'candidate_candidates')?>"><img src="/css/admin/img/global/add-info.png"/></a>
									<a href="#" class="remove-child" title="" >&nbsp;</a>
									<div class="hidden">
										<div id="confirm-info-<?php echo $count_for?>">
											<table class="confirm-info">
												<tr>
													<th><?php echo __('confirm-person', null, 'candidate_candidates')?></th>
													<td><input name="workings[<?php echo $count_for?>][confirm_person]" 		class="wcperson" 				  value=""/></td>
												</tr>
												<tr>
													<th><?php echo __('confirm-phone-number', null, 'candidate_candidates')?></th>
													<td><input name="workings[<?php echo $count_for?>][confirm_phone_number]" 		class="wcphone number" 				  value=""/></td>
												</tr>
												<tr>
													<th><?php echo __('confirm-description', null, 'candidate_candidates')?></th>
													<td><input name="workings[<?php echo $count_for?>][confirm_description]" 		class="wcdes" 				  value=""/></td>
												</tr>
											</table>
										</div>
									</div>
								</td>
							</tr>
						</table>
						<div class="addmore"><a href="#" data-count="<?php echo ++$count_for?>" class="sub-form-add" title="" data-action="working" data-refer-id="sub-form-working">&nbsp;</a></div>
						
					</td>
				</tr>	
				<tr class="class1">
					<td class="label"><?php echo __('label_candidate_major',null,'candidate_candidates')?></td>
					<td class="input">
						<div style="display: none">
										<select id="major-tmp" class="major-select">
											<option value="-1"><?php echo __('option_select', null, 'table_list')?></option>
											<?php foreach($data['child']['major_json'] as $k => $v):?>
											<optgroup label="<?php echo $v['name']?>">
												<?php foreach ($v['MasterMajors'] as $mj):?>
												<option value="<?php echo $mj['id']?>"><?php echo '. . . ', $mj['name']?></option>
												<?php endforeach;?>
												</optgroup>
											<?php endforeach;?>
										</select>
										<div id="major-id-tmp">&nbsp;<a href="#" class="addnew" data-refer="major-select" data-reload-url="<?php echo sfConfig::get('app_prefix') . url_for2('education_levels_getLevels')?>" data-url="<?php echo sfConfig::get('app_prefix') . url_for2('education_levels_4')?>" data-title="<?php echo __('educationlevel_addnew_title', null, 'candidate_candidates')?>"><?php echo __('addnew_major_link', null, 'candidate_candidates')?></a></div>
										
						</div>
						<table class="create-child sub-form" id="sub-form-major" border="1" cellspacing="0" cellpadding="0" data-error="<?php echo __('major-error', null, 'candidate_candidates')?>">							
							<tr>
								<td class="header mname"><?php echo __('major_name', null, 'candidate_candidates')?></td>
								<td class="header mdescription"><?php echo __('major_description', null, 'candidate_candidates')?></td>
								<td class="header ac">&nbsp;</td>
							</tr>
							
							<?php $count_for = 0;
							foreach ($data['child']['majors'] as $work):?>
							<tr class="r-required" data-count="0">
								<td>
									<select name="majors[<?php echo $count_for?>][major_id]" data-get-id="major-tmp" data-select-id="<?php echo $work['major_id']?>" class="r-selected r-required major-select"></select>
									&nbsp;<a href="#" class="addnew" data-refer="major-select" data-reload-url="<?php echo sfConfig::get('app_prefix') . url_for2('major_getlist')?>" data-url="<?php echo sfConfig::get('app_prefix') . url_for2('major_list_4')?>" data-title="<?php echo __('major_addnew_title', null, 'candidate_candidates')?>"><?php echo __('addnew_major_link', null, 'candidate_candidates')?></a>
								</td>
								<td><textarea name="majors[<?php echo $count_for?>][description]" class="mdescription"><?php echo $work['description']?></textarea></td>
								<td><a href="#" class="remove-child" title="" >&nbsp;</a></td>
							</tr>
							<?php $count_for++;
							endforeach;?>
							
								<tr class="r-required" data-count="0">
									<td>
										<select name="majors[<?php echo $count_for?>][major_id]" data-get-id="major-tmp" data-select-id="-1" class="r-selected r-required major-select"></select>
										&nbsp;<a href="#" class="addnew" data-refer="major-select" data-reload-url="<?php echo sfConfig::get('app_prefix') . url_for2('major_getlist')?>" data-url="<?php echo sfConfig::get('app_prefix') . url_for2('major_list_4')?>" data-title="<?php echo __('major_addnew_title', null, 'candidate_candidates')?>"><?php echo __('addnew_major_link', null, 'candidate_candidates')?></a>
									</td>
									<td><textarea name="majors[<?php echo $count_for?>][description]" class="mdescription"></textarea></td>
									<td><a href="#" class="remove-child" title="" >&nbsp;</a></td>
								</tr>
						</table>
						<div class="addmore"><a href="#" data-count="<?php echo ++$count_for?>" class="sub-form-add" title="" data-action="major" data-refer-id="sub-form-major">&nbsp;</a></div>
						
					</td>
				</tr>	
				
				<tr class="class1">
					<td class="label"><?php echo __('label_remark_more',null,'candidate_candidates')?></td>
					<td class="input">
						<table class="create-child sub-form" id="sub-form-remark-more" data-error="<?php echo __('remark-more-error', null, 'candidate_candidates')?>" border="1" cellspacing="0" cellpadding="0" > 
							<tr>
								<td class="header rm-date"><?php echo __('remark-date', null, 'candidate_candidates')?></td>
								<td class="header sdescription"><?php echo __('remark-content', null, 'candidate_candidates')?></td>
								<td class="header ac">&nbsp;</td>
							</tr>
							
							<?php $count_for = 0;
							foreach ($data['child']['remark_more'] as $work):?>
							<tr class="r-required" data-count="0">
									<td><input name="remark_more[<?php echo $count_for?>][remarked_at]" class="remark-more r-required date-picker" value="<?php echo DateHelper::dateFormatFree($work['remarked_at'],'d-m-Y')?>"/></td>
									<td><textarea name="remark_more[<?php echo $count_for?>][content]" class="mdescription"><?php echo $work['content']?></textarea></td>
									<td><a href="#" class="remove-child" title="" >&nbsp;</a></td>
							</tr>
							<?php $count_for++; 
							endforeach;?>
							<tr class="r-required" data-count="0">
									<td><input name="remark_more[<?php echo $count_for?>][remarked_at]" class="remark-more  r-required date-picker" value=""/></td>
									<td><textarea name="remark_more[<?php echo $count_for?>][content]" class="mdescription"></textarea></td>
									<td><a href="#" class="remove-child" title="" >&nbsp;</a></td>
							</tr>
						</table>
						<div class="addmore"><a href="#" data-count="<?php echo ++$count_for?>" class="sub-form-add" title="" data-action="remark-more" data-refer-id="sub-form-remark-more">&nbsp;</a></div>
						
					
					</td>	
					
				</tr>
				<tr class="class1">
					<td class="label"><?php echo __('label_remark',null,'candidate_candidates')?></td>
					<td class="input"><?php echo $form['remark']->render(array('class'=>''))?></td>
					
				</tr>
				<tr class="class1">
					<td class="label"><?php echo __('register_date',null,'candidate_candidates')?><span class="required">*</span></td>
					<td class="input"><?php echo $form['register_date']->render(array('class'=>'required register-date', 'data-require'=> 'not-empty'))?><span class="error" id="type_error"><?php echo __('error_date_required', null, 'candidate_candidates')?></span></td>
					
				</tr>
				<tr class="class1" style="display: none">
					<td class="label"><?php echo __('is_enabled',null,'table_list')?></td>
					<td class="input"><?php echo $form['is_enabled']->render(array('class'=>'required'))?></td>
					
				</tr>
				<tr class="class1" style="background:#fff">
					<td class="label">&nbsp;</td>
					<td class="input"><input type="button" id="button_submit" data-error="<?php echo __('submit_error', null, 'table_list')?>" name="button_submit" class="button" value="<?php echo $data['button_action']?>"/></td>
					
				</tr>
			</table>
		</div>


		<div class="clr"></div>
		<div class="control-back"><a href="<?php echo $data['redirect']?>" title="<?php echo __('control_back', null, 'table_list')?>" alt="<?php echo __('control_back', null, 'table_list')?>"><?php echo __('control_back', null, 'table_list')?></a></div>
	</form>
</div>